package com.roncoo.education.db.dao;

import com.roncoo.education.db.entity.Product;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductDao {

    Long insert(Product news);

    List<Product> findByBean(Product news);

    List<Product> getProdsMainImage(Product news);

    Product findById(Long id);

    Integer findByBeanCount(Product news);

    void deleteById(Product news);

    void deleteByBean(Product news);

    void updateById(Product news);

}
